class GetChatContent {
  String id;
  String fromId;
  String toId;
  String content;
  String createTime;
  String orderId;
  String position;
  String userName;
  String headimgurl;

  GetChatContent(
      {this.id,
      this.fromId,
      this.toId,
      this.content,
      this.createTime,
      this.orderId,
      this.position,
      this.userName,
      this.headimgurl});

  GetChatContent.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    fromId = json['from_id'];
    toId = json['to_id'];
    content = json['content'];
    createTime = json['create_time'];
    orderId = json['order_id'];
    position = json['position'];
    userName = json['user_name'];
    headimgurl = json['headimgurl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['from_id'] = this.fromId;
    data['to_id'] = this.toId;
    data['content'] = this.content;
    data['create_time'] = this.createTime;
    data['order_id'] = this.orderId;
    data['position'] = this.position;
    data['user_name'] = this.userName;
    data['headimgurl'] = this.headimgurl;
    return data;
  }
}
